
import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('@/views/layout/indexView.vue'),
      redirect: "/home",
      children: [
        {
          path: '/home',
          component: () => import('@/views/home/indexView.vue'),
          meta: {
            title: '首页'
          }
        },

        {
          path: '/mess',
          component: () => import('@/views/mess/indexView.vue'),
          meta: {
            title: '消息'
          }
        },

        {
          path: '/order',
          component: () => import('@/views/order/indexView.vue'),
          meta: {
            title: '订单'
          }
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/login/indexView.vue')
    },
    {
      path: '/11',
      name: '11',
      component: () => import('@/views/11/indexView.vue' as any)
    },

    {
      path: '/detail/:id',
      component: () => import('@/views/detail/indexView.vue'),
    },

    {
      path: '/detail2/:id',
      component: () => import('@/views/detail2/indexView.vue'),
    },

    {
      path: '/detail3/:id',
      component: () => import('@/views/detail3/indexView.vue'),
    },

    {
      path: '/help',
      component: () => import('@/views/help/indexView.vue'),
    },

    {
      path: '/search',
      component: () => import('@/views/search/indexView.vue'),
    },

    {
      path: '/more',
      component: () => import('@/views/more/indexView.vue'),
    },

    {
      path: "/dialog",
      component: () => import('@/views/dialog/dialogView.vue'),
    },

    {
      path: '/live',
      component: () => import('@/views/live/indexView.vue'),
    },

    {
      path: '/specialists',
      component: () => import('@/views/Doctors/specialists/indexView.vue'),
      meta: {
        title: '问专家'
      }
    },

    {
      path: '/doctordetail',
      component: () => import('@/views/Doctors/doctorDetail/indexView.vue'),
      meta: {
        title: '医生详情'
      }
    },

    {
      path: '/doctorPing',
      component: () => import('@/views/Doctors/doctorDetail/doctorPing/indexView.vue'),
      meta: {
        title: '医生详情_评价'
      }
    },

    {
      path: '/doctorsJinQi',
      component: () => import('@/views/Doctors/doctorDetail/doctorsJinQi/indexView.vue'),
      meta: {
        title: '医生详情_锦旗'
      }
    },

    {
      path: '/ItemJinQi',
      component: () => import('@/views/Doctors/doctorDetail/ItemJinQi/indexView.vue'),
      meta: {
        title: '医生详情_锦旗tap'
      }
    },

    {
      path: '/zhiFu',
      component: () => import('@/views/Doctors/doctorDetail/ZhiFu/indexView.vue'),
      meta: {
        title: '医生详情_锦旗_支付'
      }
    },

    {
      path: '/cart',
      component: () => import('@/views/Doctors/doctorDetail/doctorCart/indexView.vue'),
      meta: {
        title: '医生详情_cart'
      }
    },

    {
      path: '/cartitem',
      component: () => import('@/views/Doctors/doctorDetail/doctorCartItem/indexView.vue'),
      meta: {
        title: '医生详情_CartItem'
      }
    },
    {
      path: '/zixunItemimg',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun/ImgXunItem/imgindexView.vue'),
      meta: {
        title: '医生详情_圖片咨询'
      }
    },

    {
      path: '/tellindexView',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun/TellXunItem/tellindexView.vue'),
      meta: {
        title: '医生详情_電話咨询'
      }
    },

    {
      path: '/tellZhiFu',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun/TellXunItem/tellZhiFu.vue'),
      meta: {
        title: '医生详情_电话支付咨询'
      }
    },

    {
      path: '/imgZhiFu',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun/ImgXunItem/ImgZhiFu.vue'),
      meta: {
        title: '医生详情_图片支付咨询'
      }
    },
    {
      path: '/ZixunZX',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun_ZX/indexView.vue'),

    },
    {
      path: '/imgZiXun',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun/ImgZiXun.vue'),
    },

    {
      path: '/telZiXun',
      component: () => import('@/views/Doctors/doctorDetail/ZiXun/TelZiXun.vue'),
    },

    {
      path: '/reservation',
      component: () => import('@/views/reservation/indexView.vue'),
    },

    {
      path: '/doctor',
      component: () => import('@/views/Doctor/indexView.vue'),
    },

    {
      path: '/PHB',
      component: () => import('@/views/Doctor/PHB/indexView.vue'),
    },

    {
      path: '/AKS',
      component: () => import('@/views/Doctor/AKS/indexView.vue'),
    },

    {
      path: '/AYY',
      component: () => import('@/views/Doctor/AYY/indexView.vue'),
    },

    {
      path: '/RSearch',
      component: () => import('@/views/RSearch/indexView.vue'),
    },
    {
      path: '/Hos',
      component: () => import('@/views/RSearch/Hos/indexView.vue'),
    },
    {
      path: '/RSearchdoctor',
      component: () => import('@/views/RSearch/RSearchdoctor/indexView.vue'),
    },
    {
      path: '/Info',
      component: () => import('@/views/RSearch/Info/indexView.vue'),
    },
    {
      path: '/SearchList',
      component: () => import('@/views/SearchList/indexView.vue'),
    },

    {

      path: '/YS',
      component: () => import('@/views/SearchList/YS/indexView.vue'),
    },

    {
      path: '/KP',
      component: () => import('@/views/SearchList/KP/indexView.vue'),
    },

    {
      path: '/YY',
      component: () => import('@/views/SearchList/YY/indexView.vue'),
    },

    {
      path: '/YP',
      component: () => import('@/views/SearchList/YP/indexView.vue'),
    },

    {
      path: '/RDetail/:id',
      component: () => import('@/views/RDetail/indexView.vue'),
    },

    {
      path: '/RDoctor/:id',
      component: () => import('@/views/RDoctor/indexView.vue'),
    },

    {
      path: '/YYGH/:id',
      component: () => import('@/views/YYGH/indexView.vue'),
    },

    {
      path: '/MyRegistration',
      component: () => import('@/views/MyRegistration/indexView.vue'),
    },

    {
      path: '/GoYYregistgration/:id',
      component: () => import('@/views/GoYYregistgration/indexView.vue'),
    },

    {
      path: '/KSDetail/:id',
      component: () => import('@/views/KSDetail/indexView.vue'),

    },

    {
      path: '/address',
      component: () => import('@/views/address/address.View.vue'),
    },
    {
      path: '/edit',
      component: () => import('@/views/edit/editView.vue'),
    },

    {
      path: '/cardrolls',
      component: () => import('@/views/cardrolls/cardrView.vue'),
    },


    {
      path: '/edit2',
      component: () => import('@/views/edit2/indexView.vue'),

    },
    {
      path: '/cardrolls',
      component: () => import('@/views/cardrolls/cardrView.vue'),

    },
    {
      path: '/booking',
      component: () => import('@/views/booking/indexView.vue'),
    },
    {
      path: '/Publicity',
      component: () => import('@/views/Publicity/indexView.vue'),
    },
    {
      path: '/opinion',
      component: () => import('@/views/opinion/indexView.vue'),
    },
    {
      path: '/usergreements',
      component: () => import('@/views/usergreements/indexView.vue'),
    },
    {
      path: '/privacy',
      component: () => import('@/views/privacy/indexView.vue'),
    },
    {
      path: '/Interrogation',
      component: () => import('@/views/Interrogation/indexView.vue'),
    },
    {
      path: '/Orders',
      component: () => import('@/views/Orders/indexView.vue'),
    },
    {
      path: '/setup',
      component: () => import('@/views/setup/indexView.vue'),
    },
    {
      path: '/my',
      component: () => import('@/views/my/indexView.vue'),
    },
    {
      path: '/patients',
      component: () => import('@/views/patients/indexView.vue'),
    },
    {
      path: '/Health',
      component: () => import('@/views/Health/indexView.vue'),
    },
    {
      path: '/medication',
      component: () => import('@/views/medication/indexView.vue'),
    },
    {
      path: "/birthday",
      component: () => import('@/views/birthday/indexView.vue')
    },
    {
      path: '/audioList',
      component: () => import('@/views/audioList/indexView.vue')
    },
    {
      path: "/followup",
      component: () => import('@/views/followup/follow_up.vue'),
    },
    {
      path: "/mydoctor",
      component: () => import('@/views/mydoctor/indexView.vue'),
    },
    {
      path: "/newprofile",
      component: () => import('@/views/newprofile/indexView.vue'),
    },
    {

      path: '/GuaHao/:id',
      component: () => import('@/views/GuaHao/indexView.vue'),

    },
    {
      path: '/talkDoctor',
      component: () => import('@/views/talkDoctor/indexView.vue')
    },
    {
      path: "/many",
      component: () => import('@/views/many/indexView.vue')
    },
    {
      path: '/talkDoctor',
      component: () => import('@/views/talkDoctor/indexView.vue')

    },
    {

      path: "/many",
      component: () => import('@/views/many/indexView.vue')
    },
    {
      path: "/Make/:id",
      component: () => import('@/views/Make/indexView.vue')
    },
    {
      path: "/XNList",
      component: () => import('@/views/XNList/indexView.vue')
    },
    {
      path: "/Visit",
      component: () => import('@/views/Visit/indexView.vue')
    },
    {
      path: "/userAdd",
      component: () => import('@/views/userAdd/indexView.vue')
    },
    {
      path: "/assess",
      component: () => import('@/views/Assess/indexView.vue')
    }
  ]
})

export default router
